public class Student implements java.io.Serializable {
	public String name;
	public int age;
	public String xuehao;
	public int ID;

	public Student() {

	}

	public String getXuehao() {
		return xuehao;
	}

	public String getName() {
		return name;
	}

	public int getAge() {
		return age;
	}

	public int getID() {
		return ID;
	}

	@Override
	public String toString() {
		return name + "\t" + age + "\t" + xuehao + "\t" + ID;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((xuehao == null) ? 0 : xuehao.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Student other = (Student) obj;
		if (xuehao == null) {
			if (other.xuehao != null)
				return false;
		} else if (!xuehao.equals(other.xuehao))
			return false;
		return true;
	}

	public Student(String name, int age, int iD) {
		this.name = name;
		this.age = age;
		ID = iD;
	}

	public Student(String xuehao) {
		this.xuehao = xuehao;
	}

}
